﻿<UserControl x:Class="Ewav.CopyDash"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" 
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    mc:Ignorable="d"
	xmlns:local="clr-namespace:Ewav"
    d:DesignHeight="914" d:DesignWidth="614">


    <Border Background="White" BorderBrush="#FFC0CFE2" Padding="0" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="4" >
        <Border.Effect>
            <DropShadowEffect Color="#FFBCB9B9" ShadowDepth="3" BlurRadius="43" Direction="166"/>
        </Border.Effect>


        <Grid x:Name="LayoutRoot">
            <Grid x:Name="HeaderGrid" Margin="0" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Height="39" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.917*"/>
                    <ColumnDefinition Width="25"/>
                </Grid.ColumnDefinitions>
                <TextBlock TextWrapping="Wrap" Text="Copy Dashboard" FontSize="21.333" FontWeight="Bold" FontFamily="Segoe UI" HorizontalAlignment="Left" d:LayoutOverrides="HorizontalAlignment" VerticalAlignment="Top" Margin="10,5,0,0"/>
                <Rectangle x:Name="GHeader" VerticalAlignment="Top" Height="4" Margin="10,33,0,0" StrokeThickness="0" Fill="#FF00B050" HorizontalAlignment="Left" Width="179" />
            </Grid>
            <StackPanel Margin="10,50,10,10" Orientation="Vertical" d:LayoutOverrides="Height">
                <StackPanel x:Name="spMsg" VerticalAlignment="Top" Orientation="Horizontal" Margin="0,0,40,0" Background="#FFDCECBB" UseLayoutRounding="True" d:LayoutOverrides="Width" Visibility="Collapsed">
                    <Image x:Name="imgerrMsg" HorizontalAlignment="Left" Height="20" Source="../../images/ErrorD.png" Stretch="Fill" Width="20" VerticalAlignment="Center" Margin="10,6,0,6"/>
                    <Image x:Name="imgSMsg" HorizontalAlignment="Left" Height="20" Source="../../images/successD.png" Stretch="Fill" Width="20" VerticalAlignment="Center" Margin="10,6,0,6"/>
                    <TextBlock x:Name="errMsg" TextWrapping="Wrap" Text="" FontFamily="Segoe UI" Foreground="#FF445818" Margin="6,6,0,6" FontSize="13.333" FontWeight="Bold" VerticalAlignment="Center"/>
                </StackPanel>
                <StackPanel x:Name="spCopy" HorizontalAlignment="Left" Visibility="Visible" VerticalAlignment="Top" Margin="0,5,0,0" >
                    <TextBlock TextWrapping="Wrap" Text="Select a Saved Dashboard:" FontSize="13.333" FontFamily="Segoe UI" HorizontalAlignment="Left" FontWeight="Bold"/>
                    <!--<ComboBox x:Name="cmbSavedDash"   Width="224" HorizontalAlignment="Left" VerticalAlignment="Top"/>-->
                    <local:MyComboBox x:Name="cmbSavedDash" DisplayMemberPath="Title" Width="260" d:LayoutOverrides="VerticalAlignment" Margin="2,5,0,5" Height="27" HorizontalAlignment="Left" SelectionChanged="cmbSavedDash_SelectionChanged"/>
                    <TextBlock TextWrapping="Wrap" Text="Select New Data Source:" FontSize="13.333" FontFamily="Segoe UI" HorizontalAlignment="Left" FontWeight="Bold" Margin="0,16,0,0"/>
                    <ComboBox x:Name="cmbDataSource"    Width="224" HorizontalAlignment="Left" VerticalAlignment="Top"  SelectionChanged="cmbSavedDash_SelectionChanged"/>
                    <TextBlock TextWrapping="Wrap" Text="Enter Title for New Dashboard:" FontSize="13.333" FontFamily="Segoe UI" HorizontalAlignment="Left" FontWeight="Bold" Margin="0,16,0,0"/>
                    <TextBox TextWrapping="Wrap" Width="224" HorizontalAlignment="Left" x:Name="txtCanvasName" TextChanged="txtCanvasName_TextChanged"/>
                    <Button x:Name="btnCopyDash" Content="Copy Dashboard" Width="155" HorizontalAlignment="Left" Style="{StaticResource btnprimary}" Canvas.ZIndex="30" Height="30" Margin="0,20,0,0" IsEnabled="False" Click="btnCopyDash_Click"/>
                    <Button x:Name="btnClear" Content="Clear" Width="88" HorizontalAlignment="Left" Style="{StaticResource btnprimary}" Canvas.ZIndex="30" Height="30" Margin="180,-30,0,0" Click="btnClear_Click"/>
                </StackPanel>
            </StackPanel>
            <!--</StackPanel>-->
            <!--<StackPanel Margin="10,0,0,0" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top">-->
            <Grid x:Name="waitCursor" Background="#36C4C4C4" Height="Auto" Visibility="Collapsed">
                <toolkit:BusyIndicator x:Name="BusyIndicator" IsBusy="True" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="100" Style="{StaticResource busy}" />
            </Grid>
        </Grid>
    </Border>
</UserControl>

    